package com.zkthink.ceres.tenant.dao;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.zkthink.base.mapper.SuperMapper;
import com.zkthink.ceres.tenant.entity.Tenant;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * Mapper 接口 企业
 * </p>
 *
 * @author ceres
 * @date 2019-10-25
 */
@Repository
@SqlParser(filter = true)
public interface TenantMapper extends SuperMapper<Tenant> {

  /**
   * 根据租户编码查询
   *
   * @param code 租户编码
   */
  Tenant getByCode(@Param("code") String code);

  String getLastCode();
}
